import time
import pytest
from Page.Page import Page
from Page.Page1 import Page1
from Page.Page2 import Page2
from selenium import webdriver
# 测试用例类
class Test_case():
    def setup_method(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
        # 隐式等待
        self.driver.implicitly_wait(2)
    def teardown_method(self):
        time.sleep(10)
        self.driver.quit()

    def test_jiuxian_login(self):
        po=Page(self.driver)
        po.jiuxian_luoji1()
    def test_jiuxian_gwc(self):
        po=Page1(self.driver)
        po.jiuxian_luoji2()
        # po.jiuxian_luoji2("data['username']","data['password]")

    def test_jiuxian_search(self):
        po=Page2(self.driver)
        po.jiuian_luoji3()

if __name__ == '__main__':
    pytest.main()

